package com.shopng.utils;

/**
 * Created by stzhang on 2015/12/18.
 * only used by ServerConfigHelper, therefore, it is protected.
 */
interface ConfigurationConstants
{
  // PUBLIC CONFIG
  public final static String GS_ENV = "gs.env";
  public final static String GS_HOME = "gs.home";
  public final static String GS_WORK = "gs.work";
  public final static String GS_BINDIP = "gs.bind.ip";
  public final static String GS_LOCATORS = "gs.locators";
  public final static String GS_VERSION = "gs.version";
  public final static String SYSTEM_NAME = "system.name";
  public final static String SYSTEM_GRIDNAME = "system.gridname";

  // db CONFIG
  public final static String DB_TYPE = "gs.date.patterns";
  public final static String DB_URL = "db.url";
  public final static String DB_PORT = "db.port";
  public final static String DB_DRIVER = "db.driver";
  public final static String DB_DEFAULT_NAME = "db.default.name";
  public final static String DB_DIALECT = "db.dialect";
  public final static String DB_USERNAME = "db.username";
  public final static String DB_PASSWORD = "db.password";

  // JMX CONFIG
  public final static String JMX_RMI_PORT = "jmx.port";
  public final static String JMX_HOST = "jmx.host";
  public final static String JMX_PORT = "jmx.port";
  public final static String HTML_PORT = "html.port";
  public final static String JMX_MANAGER_PORT = "jmx.manager.port";

  // ZOOKEEPER CONFIG
  public final static String ZOOKEEPER_SERVERS = "zookeeper.servers";
  public final static String ADF_SESSION_TIMEOUT = "adf.session.timeout";

  // SOLR CONFIG
  public final static String SOLR_ZK_HOST = "solr.zk.host";
  public final static String SOLR_COLLECTION = "solr.collection";
  public final static String SOLR_HTTP_CONNECT_TIMEOUT = "solr.http.connect.timeout";
  public final static String SOLR_HTTP_SO_TIMEOUT = "solr.http.so.timeout";
  public final static String SOLR_COMMIT_MAXTIME= "solr.commit.max.time";
  public final static String SOLR_COMMIT_BATCH_SIZE = "solr.commit.batch.size";

  public final static String NAMING_SERVER = "naming.server";
  public final static String GRID_OPLOG_META = "grid.meta.oplog.max";
  public final static String GRID_OPLOG_QUEUE = "grid.queue.oplog.max";

  public final static String GRID_STATUS_THREAD_INTERVAL="grid.status-thread.interval";

  public final static String GRID_CACHE_REALTIME="grid.cache.realtime";

  public final static String CLIENT_NULTIPLE_USER_ENABLED = "client.multiple.user.enabled";
  
  public final static String LUCENE_DIRECTORY = "indexer.lucene.directory";
  public final static String LUCENE_INTERVAL = "indexer.lucene.time-interval";
}
